﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace N03_11HCA_HTTTHD.Models
{
    public class Admin_QuanLyRaoVat
    {
        public Admin_QuanLyRaoVat(List<Data_DAO_DTO_Lib.DTO.DTO> list)
        {
            setListNguoiDungTuDTO(list);
        }

        void setListNguoiDungTuDTO(List<Data_DAO_DTO_Lib.DTO.DTO> l)
        {
            listChaoBan = new List<Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO>();

            for (int i = 0; i < l.Count; i++)
            {
                listChaoBan.Add((Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO)l[i]);
            }
        }

        private List<Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO> listChaoBan;
        public List<Data_DAO_DTO_Lib.DTO.TAIKHOAN_DTO> ListTaiKhoan
        {
            get
            {
                return listChaoBan;
            }
            set
            {
                listChaoBan = value;
            }
        }
    }
}